package com.example.emvoider;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.example.emvoider.base.BaseActivity;
import com.example.emvoider.bean.Bean;
import com.example.emvoider.bean.NaviBean;
import com.example.emvoider.presenter.MainPresenter;
import com.example.emvoider.view.MainView;

public class MainActivity extends BaseActivity<MainPresenter> implements MainView {

    private TextView mTv;
    private RecyclerView mRv;

    @Override
    public void setData(Bean bean) {
        Log.d("tag", "setData: " + bean.toString());
    }

    @Override
    public void setDataa(NaviBean bean) {
        Log.d("tag", "setData: " + bean.toString());
    }

    @Override
    protected void intaview() {

    }

    @Override
    protected void initdata() {

    }

    @Override
    protected MainPresenter initPresenter() {
        return new MainPresenter();
    }


    @Override
    protected int getLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void tost(String string) {
        Toast.makeText(this, string, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    public void initView() {

        mRv = (RecyclerView) findViewById(R.id.rv);

    }
}
